I am new to DXL and DOORS and have writen a quick program to pull the membership in groups for a report.
This program works in DOORS when not connected to RDS but when I run it on a DOORS connected to RDS it does not find all the IDs.
In fact if I run the code two times I get different results??
Here is a snip of the code in question.
Thank you for any suggestions.
for (i = 0; i < sizeof(groupNames); i++) {
grp = find(groupNames[i]);
userCount = 0;
for usr in grp do{
username = usr.name;
bool foundIt = find(userIds, username, idNum);
if (foundIt) {
} else {
put(userIds, username, currentId);
put(idInfo, username, currentId, 0);
uEmail = usr.email;
name1 = usr.forename;
name2 = usr.surname;
fullname = name1 " " name2;
uClass = usr.class;
put(idInfo, uEmail, currentId, 1);
put(idInfo, fullname, currentId, 2);
put(idInfo, stringOf(uClass), currentId, 3);
//
// Set default values for group membership
//
for (j = 0; j < sizeof(groupNames); j++)
put(idInfo, 0, currentId, numInfo+j);
idNum = currentId;
currentId++;
}
put(idInfo, 1, idNum, numInfo+i);
userCount++;
}
print "User Count(" groupNames[i] "): " userCount "\n";
}
SystemAdmin - Wed Mar 07 12:45:45 EST 2012 |